/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-07-04 01:36:52
 * @LastEditors: cxguo
 * @LastEditTime: 2019-07-04 01:36:52
 */

const state = {
	pageParams: {}
}

const mutations = {
	SET_PARAMS: (state, {
		key,
		params
	}) => {
		state.pageParams[key] = params
	}
}

const actions = {
	setParams({
		commit
	}, data) {
		commit('SET_PARAMS', data)
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}
